#ifndef __GLOBALCLOCK_H__
#define __GLOBALCLOCK_H__

class GlobalClock
{
	public:

		static GlobalClock& instance();
		void update(const float dt);
		float deltaTime() const;
		
	private:
		GlobalClock ();
		virtual ~GlobalClock ();
		
		unsigned int m_countFrames;
		float m_currentDT;
		float m_timeElapsed;
		float m_timeElapsedSinceLastSecond;
		unsigned int m_nbframesSinceLastSecond;
};

#define GET_DT GlobalClock::instance().deltaTime()

#endif /* __GLOBALCLOCK_H__ */

